package com.example.mybatis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mybatis.domain.User;
import com.example.mybatis.service.UserService;
import com.example.mybatis.mapper.UserMapper;
import lombok.RequiredArgsConstructor;

import org.springframework.stereotype.Service;


/**
* @author Administrator
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-10-31 09:22:56
*/
@Service
@RequiredArgsConstructor
public class UserServiceImpl extends ServiceImpl<UserMapper, User>implements UserService
{
    private final UserMapper userMapper;

    @Override
    public User getUserById(int id) {
        return userMapper.selectById(id);
    }

}




